package lab02.Test37;

public class Graduate extends Student {
    @Override
    double AverageScore() {
        double sum=0;
        for(Double score:score){
            sum=sum+score;
        }
        return averageScore=sum/3;
    }

    @Override
    String IfGraduate() {
        if (averageScore>80){
            ifGraduate="通过";
        }
        else {
            ifGraduate="没通过";
        }
        return ifGraduate;
    }
    }

